#ifndef  __LIB_FFMPEG_H__
#define  __LIB_FFMPEG_H__


#include "debug.h"
#include "include_com.h"
#include "../public/file_list/file_list.h"
#include "../public/message/message.h"


typedef enum
{
	DECODE_FIND_FILE = 0,
	
    DECODE_STREAM,
	
    DECODE_READ_PACKET,
    
    DECODE_PAUSE,

    DECODE_STOP,    

	DECODE_IDLE,

} decode_state_e;


#define  MAX_AUDIO_FRAME_SIZE        192000 // 1 second of 48khz 32bit audio

//Invalid source: 1280x2768. max input: 4096x2304

#define  MAX_VIDEO_W       (4096)
#define  MAX_VIDEO_H       (2304)


typedef struct ff_para {

	int			  d_state;
	int           f_index;		
	int           f_msg;

	
    file_list_t*  f_list ;
}ff_para_t;



#endif




